package independence.chronos
{
	import independence.core.IndyObject;
	
	/**
	 * The <code>DayUtils</code> class provides static methods for performing common
	 * time conversions involving days.
	 * 
	 * @author	TK, TK Assembled for Independence Glory.
	 */
	public class DayUtils extends IndyObject
	{
		
		public static function daysToMillis(days:Number):Number
		{
			return days * (24 * 60 * 60 * 1000);
		}
		
		public static function daysToSeconds(days:Number):Number
		{
			return days * (24 * 60 * 60);
		}
		
		public static function daysToMinutes(days:Number):Number
		{
			return days * (24 * 60);	
		}
		
		public static function daysToHours(days:Number):Number
		{
			return days * (24);
		}
		
		public static function daysToWeeks(days:Number):Number
		{
			return days / (7);
		}
		
		public static function daysToMonths(days:Number):Number
		{
			return days / 30;
		}
		
		public static function daysToYears(days:Number):Number
		{
			return days / 365;
		}
	}
}